package Test;

public class Test {
    public static void main(String[] args) {
        //编写匿名内部类的方法

        new Swim(){

            @Override
            public void swim() {
                System.out.println("重写了游泳的内部类" +
                        "" +
                        "7");


            }
        };
    }
}
